<h1>Edycja użytkownika</h1>
<form method="post" action="{url User=EditUser id=$user->GetId()}" id="edit_user" name="edit_user">
<div class="mainOptions">
	<h2 class="slidingTab"><a class="colapse" href="#">Dane podstawowe</a></h2>
	<div class="optionContent">
		<table cellspacing="0" cellpadding="0" border="0" width="100%" class="commonTable">
			<tr>
				<th>Imię</th>
				<td>
					<input type="text" value="{$user->getFirstName()}" id="first_name" name="first_name"/>
				</td>
			</tr>
			<tr>
				<th>Nazwisko</th>
				<td>
					<input type="text" value="{$user->getlastName()}" id="last_name" name="last_name"/>
				</td>
			</tr>			
			<tr>
				<th>Email</th>
				<td>
					<input disabled="disabled" type="text" value="{$user->getEmail()}" id="email" name="email"/>
				</td>
			</tr>
		</table>
	</div>
</div>


<div class="mainOptions">
	<h2 class="slidingTab"><a class="expand" href="#">Nowe hasło</a></h2>
	<div class="optionContent" style="display: none;">
		<table cellspacing="0" cellpadding="0" border="0" width="100%" class="commonTable">
			<tr>
				<th>Hasło</th>
				<td>
					<input type="text" value="" id="password" name="password"/>
					{if isset($errors.password)}
						{foreach from=$errors.password item=txt}
						<p class="error">{$txt}</p>
						{/foreach}
					{/if}
				</td>
			</tr>

		</table>
	</div>
</div>

<div class="mainOptions">
	<h2 class="slidingTab"><a class="expand" href="#">Ustawienia</a></h2>
	<div class="optionContent" style="display: none;">
		<table cellspacing="0" cellpadding="0" border="0" width="100%" class="commonTable">
			<tr>
				<th>Status</th>
				<td>
					<input {if $user->getStatus() eq 1}checked="checked"{/if} type="radio" name="status" value="1" id="status0" />
					<label for="status0">Normalny</label>
					<input {if $user->getStatus() eq 0}checked="checked"{/if} type="radio" name="status" value="0" id="status1" />
					<label for="status1">Zablokowany</label>					
				</td>
			</tr>
			<tr>
				<th>Aktywny</th>
				<td>
					<input {if $user->getActive() eq 1}checked="checked"{/if} checked="checked" type="radio" name="active" value="1" id="astatus1" />
					<label for="astatus1">Aktywny</label>
					<input {if $user->getActive() eq 0}checked="checked"{/if} type="radio" name="active" value="0" id="astatus0" />
					<label for="astatus0">Nieaktywny</label>					
				</td>
			</tr>
		</table>
	</div>
</div>
<br />
<p align="right"><input class="cancel" type="button" name="" value="Anuluj" onclick="document.location='{url User=Index}'" /><input type="submit" name="" value="Zapisz" /></p>

</form>
<div class="clearBoth"></div>
